package com.hdy.net.order;

import com.hdy.net.order.bean.Request;

public class BaseOrder implements IOrder {

    protected final static String MEDIA_TYPE = "application/getBasicData; charset=utf-8";

    public BaseOrder() {
    }

    @Override
    public void login(Request request, NetCallback callback) {

    }

    @Override
    public void getBasicData(Request request, NetCallback callback) {
        /*BasicDataResponse basicDataResponse = new BasicDataResponse();
        List<CategoryBean> beans = new ArrayList<>();
        List<DishBean> dishes = new ArrayList<>();

        for(int i = 0; i < 20; i++) {
            CategoryBean bean = new CategoryBean();
            bean.setCode("100" + i);
            bean.setName("类别"+i);
            beans.add(bean);

            for(int j = 0; j < 15; j++) {
                DishBean dish = new DishBean();
                dish.setCategoryId(bean.getCode());
                dish.setCode("" + j);
                dish.setName("菜品" + i + "" + j);
                dish.setPrice(i+j);
                dishes.add(dish);
            }
        }
        basicDataResponse.setCategory(beans);
        basicDataResponse.setDishes(dishes);
        basicDataResponse.analyse();
        callback.onNext(basicDataResponse);*/
    }

    @Override
    public void startOrder(Request request, NetCallback callback) {
    }

    @Override
    public void getOrderInfo(Request request, NetCallback callback) {

    }


}
